<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>WdatePicker日期插件</title>
		<jsp:include page="/WEB-INF/jsp/common/scriptIncEs.jsp"></jsp:include>
		<jsp:include page="/WEB-INF/jsp/common/styleIncEs.jsp"></jsp:include>
		<script type="text/javascript">
			$(function(){
				pageLoad();
			});
			function pageLoad(){
				//自定义时间
				var endtime=new Date();
			    $("#date").bind('click', function() {
			        WdatePicker({dateFmt : 'yyyy-MM-dd',maxDate : endtime});
			        fixedDataPicker();
			    });
			}
		</script>
	</head>
	<body>
		<div>
			日期：<input type="text" id="date" readonly="readonly" value="<fmt:formatDate value="${datess}" pattern="yyyy-MM-dd"/>"/>
		</div>
	</body>
</html>